/*
 * User: rant
 * Date: Aug 13, 2007
 *
 *
 */
package laMalinche.constraint;

/**
 *
 */
public class BasicConstraintResultHolder implements ConstraintResultHolder{
	private ConstraintResult constraintResult;

	public BasicConstraintResultHolder() {
        constraintResult = new ConstraintResult();
	}

	public boolean isResultValid() {
		return constraintResult.getInvalidConstraints().isEmpty();
	}

	public void initializeConstraintResult() {
        constraintResult = new ConstraintResult();
	}

	public ConstraintResult getConstraintResult() {
		return constraintResult;
	}
}